﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ZhCun.WebCommon.ApiModels;
using ZhCun.WebCommon.ViewModels;
using ZhCun.WebCommon.WebApi;
using ZhCun.WebTemplate.AL;
using ZhCun.WebTemplate.Models;

namespace ZhCun.WebTemplate.Web.ApiControllers
{
    public class ApiTmCRUDController : ApiCRUDBaseController<ALTmCRUD, ArgGetList, TTest>
    {
        [HttpPost]
        public ApiResult ExecOtherApi(ArgGetList arg)
        {
            bool r = ALObj.ExecOtherApi(out string msg);
            return CreateResult(r, msg);
        }
    }
}